﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace WCS.Infrastructure.EFCore;

/// <summary>
/// 优惠券包关联表
/// </summary>
[Table("CouponPackageItem")]
public partial class CouponPackageItem
{
    /// <summary>
    /// 优惠券包关联ID
    /// </summary>
    [Key]
    [StringLength(32)]
    public string Id { get; set; } = null!;

    /// <summary>
    /// 关联优惠券包ID
    /// </summary>
    [StringLength(32)]
    public string PackageId { get; set; } = null!;

    /// <summary>
    /// 关联优惠券模板ID
    /// </summary>
    [StringLength(32)]
    public string TemplateId { get; set; } = null!;

    /// <summary>
    /// 每个用户可领取的数量（默认1）
    /// </summary>
    public int? Quantity { get; set; }

    /// <summary>
    /// 排序号（券包内优惠券的展示顺序，数字越小越靠前）
    /// </summary>
    public int Sort { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [Column(TypeName = "timestamp(6) without time zone")]
    public DateTime CreationTime { get; set; }
}
